package com.ecommerce.dddmodules.shippingcontext.model;

import java.util.List;
/**
 * @packageName: shippingcontext.model（发货上下文.领域包）
 * @className: ShippableOrder(可发货订单领域)
 * @description: 围绕此可发货订单领域展开业务
 * @author: luds
 * @version: v1.0
 * @date: 2021-04/01
 */
public class ShippableOrder {
	/**
	 * 订单ID
	 */
	private int orderId;

	/**
	 * 送货地址
	 */
	private String address;

	/**
	 * 包裹项目明细
	 */
	private List<PackageItem> packageItems;

	/**
	 * 由订单ID、包裹项目明细构造可发货订单
	 * @param orderId
	 * @param packageItems
	 */
	public ShippableOrder(int orderId, List<PackageItem> packageItems) {
		this.orderId = orderId;
		this.packageItems = packageItems;
	}

	/**
	 * 获取订单ID
	 * @return 订单ID
	 */
	public int getOrderId() {
		return orderId;
	}

	/**
	 * 设置订单ID
	 * @param orderId 订单ID
	 */
	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}

	/**
	 * 获取包裹项目明细
	 * @return 返回包裹项目明细
	 */
	public List<PackageItem> getPackageItems() {
		return packageItems;
	}

	/**
	 * 设置包裹项目明细
	 * @param packageItems 包裹项目明细
	 */
	public void setPackageItems(List<PackageItem> packageItems) {
		this.packageItems = packageItems;
	}

	/**
	 * 获取发货地址
	 * @return 发货地址
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * 设置发货地址
	 * @param address 发货地址
	 */
	public void setAddress(String address) {
		this.address = address;
	}
}
